﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<FillCartridgeBBB.Models.Printer>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Редагування принтера
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Редагування</h2>

   <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary("Дані не збережено!") %>
        
        <fieldset>
            <legend>Принтер</legend>          
            <div class="editor-label">
                <%= Html.LabelFor(model => model.PrinterName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.PrinterName) %>
                <%= Html.ValidationMessage("PrinterName", "*") %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.CartridgeName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.CartridgeName) %>
                <%= Html.ValidationMessage("CartridgeName", "*") %>
            </div>
            
                    <p>
                    <img id = "colexButton" src="../../Image/expand.JPG" onclick = 'return hideshowdetails();'/>
                    </p>
                    <div id = "other" style="display:none;">
        <fieldset>
        <legend>Відділення</legend> 
<%
            ViewData["Type"] = "Select";
            Html.RenderPartial("DepartmentList", Model, ViewData ); %> 
    </fieldset>
        </div>    
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>


    <% } %>

    <div>
        <%= Html.ActionLink("До списку", "List") %>
    </div>

</asp:Content>

